//
//  KFDMarketHolidayForecastTableViewCell.m
//  
//
//  Created by JIRENTIANXIANG on 6/18/15.
//
//

#import "KFDMarketHolidayForecastTableViewCell.h"
#import "KFDHolidayForecast.h"
#import "NSDate+format.h"

@interface KFDMarketHolidayForecastTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *countryLabel;

@end

@implementation KFDMarketHolidayForecastTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setHolidayForecast:(KFDHolidayForecast *)holidayForecast
{
    self.titleLabel.text=holidayForecast.content;
    self.countryLabel.text=[NSString stringWithFormat:@"影响 : %@",holidayForecast.country];
    self.timeLabel.text=holidayForecast.date?[NSString stringWithFormat:@"%@ %@",holidayForecast.date.year_month_day,holidayForecast.date.minute_second]:@"---";
}

@end
